
package pe.org.jhsystem.consola.hilo.thread;

/**
 *
 * @author jhuamanv
 */
public class ThreadDemo implements Runnable {

    public ThreadDemo() {
        Thread thDemo = new Thread( this, "ThDemo" );
        thDemo.start();
    }

public void run() {
    try {
        Thread.sleep(3000);
    }catch( InterruptedException e ) { }
        System.out.println("Saliendo del hilo hijo");
    }
}
